<?php
namespace app\index\controller;
use app\admin\model\Config;
use app\common\service\CateService;
use think\Controller;
use think\Db;

class Common extends Controller
{


    function initialize()
    {

        $nav_list = CateService::cate_tree_three(1);
        $this->assign('nav_list',$nav_list);

        $data = Config::where('name', 'web_config')->find();
        $this->assign('config',$data['value']);
    }

}
